<?php
/*=======================================================================
 Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
 =======================================================================*/

global $prefix, $db, $admin_file;

$maxcolumns = $_POST['maxcolumns'];
$maxwidth = $_POST['maxwidth'];
$maxheight = $_POST['maxheight'];
$maximgamount = $_POST['maximgamount'];


$result = $db->sql_query("SELECT * FROM " . $prefix . "_upload_config");
$db->sql_query("UPDATE ".$prefix."_upload_config SET maxwidth= '$maxwidth', maxheight= '$maxheight', maxcolumns='$maxcolumns', max_show_image='$maximgamount'",$result) or die(mysql_error());
redirect($admin_file.".php?op=Uploadimagesettings");

 ?>